<%--
  Created by IntelliJ IDEA.
  User: 10563
  Date: 2021/1/17
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>

<%@page language="java" contentType="text/html; charset=utf-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>试卷详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/exammodol/css/layui.css" media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/exammodol/css/public.css" media="all">
    <script src="${pageContext.request.contextPath}/exammodol/js/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery.serializeJSON/3.1.1/jquery.serializejson.js"></script>
    <style>
        .site-demo-button{margin: 10px 0 10px 0}
        #po{
            display: none !important;
        }
    </style>
</head>
<body>
<a class="layui-btn layui-btn-normal" href="${base}/exam/toIndex">返回首页</a>
<div class="layuimini-container">
    <div class="layuimini-main">
        <form class="layui-form">

            <%--private String useranswer;    //用户答案--%>
            <%--private Integer escore;     //用户该题成绩--%>

            <%--private String title;      //题目--%>
            <%--private String answer;     //题目答案--%>
            <%--private String analysis;     //题目解析--%>
            <%--private String optiona;      //选项A--%>
            <%--private String optionb;      //选项B--%>
            <%--private String optionc;       //选项C--%>
            <%--private String optiond;      //选项D--%>




            <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;">
                <legend>试卷详情</legend>

                <c:forEach items="${examSheet}" var="q">
                    <div class="layui-form-item">
                        <label class="layui-form-label">题目</label>
                        <div class="layui-input-block">
                            <input type="text" autocomplete="off" class="layui-input" readonly="readonly" value="${q.title.title}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">A</label>
                        <div class="layui-input-block">
                            <input type="text"  class="layui-input" readonly="readonly" value="${q.title.choice1}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">B</label>
                        <div class="layui-input-block">
                            <input type="text"  class="layui-input" readonly="readonly" value="${q.title.choice2}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">C</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" readonly="readonly" value="${q.title.choice3}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">D</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" readonly="readonly" value="${q.title.choice4}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">题目解析</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" readonly="readonly" value="${q.title.parse}">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">正确答案</label>
                            <div class="layui-input-inline">
                                <input type="text" readonly class="layui-input" value="${q.title.answer}" style="color: red">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">用户答案</label>
                            <div class="layui-input-inline">
                                <input type="text" readonly class="layui-input" value="${q.result}" >
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">得分</label>
                            <div class="layui-input-inline">
                                <input type="text" readonly class="layui-input" value="${q.score}">
                            </div>
                        </div>
                    </div>
                    <hr>
                </c:forEach>



            </fieldset>

        </form>


    </div>
</div>



</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js"></script>
<script>
</script>






</html>
